<div class="row" style="height:30px;">

</div>
<div class="div_center">

</div>
<div id="dg" style="z-index: 9999; position: fixed ! important; right: 5px; top: 100px;">  
<table width=""100% style="position: absolute; width:60px; right: 5px; top: 100px;">  
  <button type="button" id = "tanchu" class="btn btn-primary btn-primary" data-toggle="modal" data-target="#myModal">
    评议标准
</button>
</table>  
</div>
<%= form_tag("/scores/save_employee_score11", method: "post", multipart: true) do %>
  <div id="content_01" style="margin-top: 15px">
    <div class="row">
      <div class="col-md-9 col-xs-9"><p><span style="font-weight:bold; font-size:16px;">周毅-</span><span class="sbu">得分:76</span></p></div>
      <input type="hidden" class="sub-score" id="score_sub_01" value="76">
    </div>
    <div class="row">
      <div class="col-md-6 col-xs-6">政治素养:
        <select name="daode_01">
         <option value ="18">18分</option>
          <option value ="14" selected="selected">14分</option>
          <option value="10">10分</option>
          <option value="6">6分</option>
          
        </select>
      </div>
      <div class="col-md-6 col-xs-6">职业素养:
        <select name="zhiye_01">
          <option value ="16">16分</option>
          <option value ="12" selected="selected">12分</option>
          <option value="8">8分</option>
          <option value="4">4分</option>
          
        </select>
      </div>
    </div>
    <div class="row">
      <div class="col-md-6 col-xs-6">廉洁从业：
        <select name="zhixing_01">
         <option value ="18">18分</option>
          <option value ="14" selected="selected">14分</option>
          <option value="10">10分</option>
          <option value="6">6分</option>
        </select>
      </div>
      <div class="col-md-6 col-xs-6">决策能力：
        <select name="xuexi_01">
          <option value ="16">16分</option>
          <option value ="12" selected="selected">12分</option>
          <option value="8">8分</option>
          <option value="4">4分</option>
          
        </select>
      </div>
    </div>
    <div class="row">
      <div class="col-md-6 col-xs-6">执行能力：
        <select name="chuangxin_01">
          <option value ="16">16分</option>
          <option value ="12" selected="selected">12分</option>
          <option value="8">8分</option>
          <option value="4">4分</option>
          
        </select>
      </div>
      <div class="col-md-6 col-xs-6">创新能力：
        <select name="goutong_01">
          <option value ="16">16分</option>
          <option value ="12" selected="selected">12分</option>
          <option value="8">8分</option>
          <option value="4">4分</option>          
        </select>
      </div>
    </div>
    <div class="demo_line_02"></div>
  </div>
  <div id="content_02" style="margin-top: 15px">
    <div class="row">
      <div class="col-md-9 col-xs-9"><p><span style="font-weight:bold; font-size:16px;">董晓旭-</span><span class="sbu">得分:76</span></p></div>
      <input type="hidden" class="sub-score" id="score_sub_02" value="76">
    </div>
    <div class="row">
      <div class="col-md-6 col-xs-6">政治素养:
        <select name="daode_02">
         <option value ="18">18分</option>
          <option value ="14" selected="selected">14分</option>
          <option value="10">10分</option>
          <option value="6">6分</option>
          
        </select>
      </div>
      <div class="col-md-6 col-xs-6">职业素养:
        <select name="zhiye_02">
           <option value ="16">16分</option>
          <option value ="12" selected="selected">12分</option>
          <option value="8">8分</option>
          <option value="4">4分</option>  
        </select>
      </div>
    </div>
    <div class="row">
      <div class="col-md-6 col-xs-6">廉洁从业：
        <select name="zhixing_02">
         <option value ="18">18分</option>
          <option value ="14" selected="selected">14分</option>
          <option value="10">10分</option>
          <option value="6">6分</option>
        </select>
      </div>
      <div class="col-md-6 col-xs-6">决策能力：
        <select name="xuexi_02">
          <option value ="16">16分</option>
          <option value ="12" selected="selected">12分</option>
          <option value="8">8分</option>
          <option value="4">4分</option>
          
        </select>
      </div>
    </div>
    <div class="row">
      <div class="col-md-6 col-xs-6">执行能力：
        <select name="chuangxin_02">
          <option value ="16">16分</option>
          <option value ="12" selected="selected">12分</option>
          <option value="8">8分</option>
          <option value="4">4分</option>          
        </select>
      </div>
      <div class="col-md-6 col-xs-6">创新能力：
        <select name="goutong_02">
          <option value ="16">16分</option>
          <option value ="12" selected="selected">12分</option>
          <option value="8">8分</option>
          <option value="4">4分</option>          
        </select>
      </div>
    </div>
    <div class="demo_line_02"></div>
  </div>
  <div id="content_03" style="margin-top: 15px">
    <div class="row">
      <div class="col-md-9 col-xs-9"><p><span style="font-weight:bold; font-size:16px;">魏洪鹏-</span><span class="sbu">得分:76</span></p></div>
      <input type="hidden" class="sub-score" id="score_sub_03" value="76">
    </div>
    <div class="row">
      <div class="col-md-6 col-xs-6">政治素养:
        <select name="daode_03">
         <option value ="18">18分</option>
          <option value ="14" selected="selected">14分</option>
          <option value="10">10分</option>
          <option value="6">6分</option>
          
        </select>
      </div>
      <div class="col-md-6 col-xs-6">职业素养:
        <select name="zhiye_03">
          <option value ="16">16分</option>
          <option value ="12" se·lected="selected">12分</option>
          <option value="8">8分</option>
          <option value="4">4分</option>
        </select>
      </div>
    </div>
    <div class="row">
      <div class="col-md-6 col-xs-6">廉洁从业：
        <select name="zhixing_03">
         <option value ="18">18分</option>
          <option value ="14" selected="selected">14分</option>
          <option value="10">10分</option>
          <option value="6">6分</option>
        </select>
      </div>
      <div class="col-md-6 col-xs-6">决策能力：
        <select name="xuexi_03">
          <option value ="16">16分</option>
          <option value ="12" selected="selected">12分</option>
          <option value="8">8分</option>
          <option value="4">4分</option>
          
        </select>
      </div>
    </div>
    <div class="row">
      <div class="col-md-6 col-xs-6">执行能力：
        <select name="chuangxin_03">
          <option value ="16">16分</option>
          <option value ="12" selected="selected">12分</option>
          <option value="8">8分</option>
          <option value="4">4分</option>
          
        </select>
      </div>
      <div class="col-md-6 col-xs-6">创新能力：
        <select name="goutong_03">
          <option value ="16">16分</option>
          <option value ="12" selected="selected">12分</option>
          <option value="8">8分</option>
          <option value="4">4分</option>          
        </select>
      </div>
    </div>
    <div class="demo_line_02"></div>
  </div>
  <div id="content_04" style="margin-top: 15px">
    <div class="row">
      <div class="col-md-9 col-xs-9"><p><span style="font-weight:bold; font-size:16px;">姜雪梅-</span><span class="sbu">得分:76</span></p></div>
      <input type="hidden" class="sub-score" id="score_sub_04" value="76">
    </div>
    <div class="row">
      <div class="col-md-6 col-xs-6">政治素养:
        <select name="daode_04">
         <option value ="18">18分</option>
          <option value ="14" selected="selected">14分</option>
          <option value="10">10分</option>
          <option value="6">6分</option>         
        </select>
      </div>
      <div class="col-md-6 col-xs-6">职业素养:
        <select name="zhiye_04">
          <option value ="16">16分</option>
          <option value ="12" selected="selected">12分</option>
          <option value="8">8分</option>
          <option value="4">4分</option>
        </select>
      </div>
    </div>
    <div class="row">
      <div class="col-md-6 col-xs-6">廉洁从业：
        <select name="zhixing_04">
         <option value ="18">18分</option>
          <option value ="14" selected="selected">14分</option>
          <option value="10">10分</option>
          <option value="6">6分</option>
        </select>
      </div>
      <div class="col-md-6 col-xs-6">决策能力：
        <select name="xuexi_04">
          <option value ="16">16分</option>
          <option value ="12" selected="selected">12分</option>
          <option value="8">8分</option>
          <option value="4">4分</option>
          
        </select>
      </div>
    </div>
    <div class="row">
      <div class="col-md-6 col-xs-6">执行能力：
        <select name="chuangxin_04">
          <option value ="16">16分</option>
          <option value ="12" selected="selected">12分</option>
          <option value="8">8分</option>
          <option value="4">4分</option>
          
        </select>
      </div>
      <div class="col-md-6 col-xs-6">创新能力：
        <select name="goutong_04">
          <option value ="16">16分</option>
          <option value ="12" selected="selected">12分</option>
          <option value="8">8分</option>
          <option value="4">4分</option>          
        </select>
      </div>
    </div>
    <div class="demo_line_02"></div>
  </div>
  <div id="content_05" style="margin-top: 15px">
    <div class="row">
      <div class="col-md-9 col-xs-9"><p><span style="font-weight:bold; font-size:16px;">周晓东-</span><span class="sbu">得分:76</span></p></div>
      <input type="hidden" class="sub-score" id="score_sub_05" value="76">
    </div>
    <div class="row">
      <div class="col-md-6 col-xs-6">政治素养:
        <select name="daode_05">
         <option value ="18">18分</option>
          <option value ="14" selected="selected">14分</option>
          <option value="10">10分</option>
          <option value="6">6分</option>         
        </select>
      </div>
      <div class="col-md-6 col-xs-6">职业素养:
        <select name="zhiye_05">
          <option value ="16">16分</option>
          <option value ="12" selected="selected">12分</option>
          <option value="8">8分</option>
          <option value="4">4分</option>
        </select>
      </div>
    </div>
    <div class="row">
      <div class="col-md-6 col-xs-6">廉洁从业：
        <select name="zhixing_05">
         <option value ="18">18分</option>
          <option value ="14" selected="selected">14分</option>
          <option value="10">10分</option>
          <option value="6">6分</option>
        </select>
      </div>
      <div class="col-md-6 col-xs-6">决策能力：
        <select name="xuexi_05">
          <option value ="16">16分</option>
          <option value ="12" selected="selected">12分</option>
          <option value="8">8分</option>
          <option value="4">4分</option>
          
        </select>
      </div>
    </div>
    <div class="row">
      <div class="col-md-6 col-xs-6">执行能力：
        <select name="chuangxin_05">
          <option value ="16">16分</option>
          <option value ="12" selected="selected">12分</option>
          <option value="8">8分</option>
          <option value="4">4分</option>
          
        </select>
      </div>
      <div class="col-md-6 col-xs-6">创新能力：
        <select name="goutong_05">
          <option value ="16">16分</option>
          <option value ="12" selected="selected">12分</option>
          <option value="8">8分</option>
          <option value="4">4分</option>          
        </select>
      </div>
    </div>
    <div class="demo_line_02"></div>
  </div>
  <div class="row">
    <div class="button-center">
      <input type="text"  name="license_key" class="hidden-on" value="<%=@license_key%>">
      <input type="hidden" id="employee-data" name="employee_data" value="">
      <button type="button"  id="save-button" class="btn btn-primary btn-lg">提交</button>
    </div>
  </div>
<%end%>
<button type="button"  id = "tanchu" class="btn btn-primary btn-lg" style="display:none" data-toggle="modal" data-target="#myModal">
</button>
<button type="button"  id = "tanchu2" class="btn btn-primary btn-lg" style="display:none" data-toggle="modal" data-target="#myModal2">
</button>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">中层民主评议标准</h4>
      </div>
      <div class="modal-body  explain-css">
        <div class="row">
          <h5>政治素养:</h5>政治坚定，旗帜鲜明，坚定不移地走中国特色社会主义道路；注重学习，与时俱进，牢固树立正确的政绩观；坚持原则；顾全大局，维护团结，党性理念和组织纪律观念强。
        </div>
        <div class="row">
          <h5>职业素养:</h5>勤勉敬业，具有强烈的事业心和责任感，有开拓精神和创业激情；品行端正，具有良好的职业道德，遵守法律法规和公司规章；熟悉现代企业管理，具有敏锐的市场意识，扎实的业务知识和丰富的管理经验。坚持以人为本，关心职工群众，切实维护职工群众合法权益。
        </div>
        <div class="row">
          <h5>廉洁从业:</h5>艰苦奋斗，勤俭办企业，自觉维护公司权益；诚实守信、依法经营，自觉遵守党和国家关于党风廉政建设的各项规定和企业规章制度；作风正派、严于律己，自觉接受组织和职工群众监督。
        </div>
        <div class="row">
          <h5>决策能力:</h5>思路清晰、有前瞻性，善于把握行业发展规律，具有战略意识和发展眼光；决策科学民主，能够针对形式变化，及时调整思路和对策；对重大问题和突发事件，反应敏捷，判断准确。
        </div>
        <div class="row">
          <h5>执行能力:</h5>认真贯彻落实上级精神，具备驾驭全局、应对复杂局面、解决好企业改革发展稳定重点问题的能力；大胆管理，敢于承担责任；善于优化资源配置，协调各方力量，有序推进各项工作。
        </div>
        <div class="row">
          <h5>创新能力:</h5>学以致用，不断推动企业体制创新、机制创新、管理创新，增强可持续发展能力；勇于创作，大力推动科技进步和自主创新，不断增强企业发展的动力和核心竞争力。
        </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" id="close-button" data-dismiss="modal">知道了</button>
      </div>
    </div>
  </div>
</div>
<div class="modal fade" id="myModal2" tabindex="-1" role="dialog" style="margin-top: 130px" aria-labelledby="myModalLabel2">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">提示</h4>
      </div>
      <div class="modal-body  explain-css">
        <div class="row">
          <h3>95分以上评分，不得超过1个，否则投票无效。</h3>
        </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">知道了</button>
      </div>
    </div>
  </div>
</div>
<script type="text/javascript">
  $("#close-button").click(function() {
    $("#tanchu2").click();
  });
  $("select").change(function(){
    var select_sub = 0 
    $(this).parent().parent().parent().find("select").each(function(){
      select_sub = Number($(this).val()) + select_sub
    })
    $(this).parent().parent().parent().find("input").val(select_sub)
    $(this).parent().parent().parent().find(".sbu")[0].innerText = "得分" + ":" + select_sub
  });
  $("#save-button").click(function () {
    var high_score = 0
    if( $("#score_sub_01").val() >=95){
      high_score = high_score + 1
    }
    if( $("#score_sub_02").val() >=95){
      high_score = high_score + 1
    }
    if( $("#score_sub_03").val() >=95){
      high_score = high_score + 1
    }
    if( $("#score_sub_04").val() >=95){
      high_score = high_score + 1
    }
    if( $("#score_sub_05").val() >=95){
      high_score = high_score + 1
    }
    if (high_score>1) {
      alert("95分以上评分，不允许超过1个")
    }else{
      $( "form" ).submit();
    }
  })
</script>
